using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Yozeev.SystemConfig.BasicConfig;
using Yozeev.UserManagerment.Users;

namespace Yozeev.SystemConfig
{
    /// <summary>
    /// 机构用户关系表
    /// </summary>
    public class BranchUser : ByUserEntity<Guid>
    {
        /// <summary>
        /// 机构
        /// </summary>
        public Guid BranchId { get; set; }
        [ForeignKey("BranchId")]
        public virtual Branch Branch { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
    }
}
